package com.project2.mapper;

import com.project2.bean.po.MarketRole;
import com.project2.bean.po.MarketRoleExample;
import com.project2.bean.po.PermissionPO;
import com.project2.bean.vo.RoleOptionsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketRoleMapper {
    long countByExample(MarketRoleExample example);

    int deleteByExample(MarketRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketRole record);

    int insertSelective(MarketRole record);

    List<MarketRole> selectByExample(MarketRoleExample example);

    MarketRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketRole record, @Param("example") MarketRoleExample example);

    int updateByExample(@Param("record") MarketRole record, @Param("example") MarketRoleExample example);

    int updateByPrimaryKeySelective(MarketRole record);

    int updateByPrimaryKey(MarketRole record);

    List<RoleOptionsVo> selectAllRole();

    List<String> queryPermissionByRoleId(String roleId);

    List<String> queryApiByType(Integer type);

    List<PermissionPO> queryPermissionByPid(int pid);
}